package com.doit.Test;

/**
 * 成员变量
 * 构造方法
 * get set 方法
 * toString 方法
 */
public class JavaTeacher {
    private int id;
    private String name;
    private String subject;
    private double height;
    private int age;


    public JavaTeacher() {
    }


    public static void aaa(){

    }

    public JavaTeacher(int id, String name, String subject, double height, int age) {
        this.id = id;
        this.name = name;
        this.subject = subject;
        this.height = height;
        this.age = age;
    }

    public int id() {
        return id;
    }

    public void id(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "JavaTeacher{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", subject='" + subject + '\'' +
                ", height=" + height +
                ", age=" + age +
                '}';
    }
}
